package vip.specimen.system.datasource.validation.question;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * *@Author: 余浪人
 * *@Date：2021/4/28 10:56
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = QuestionUniqueImp.class)
public @interface QuestionUnique {
    String value() default "";

    String message() default "问题已存在，不可重复添加";

    Class[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
